import { createAPI } from '@/utils/request'

// 获取学科列表
export const xueke = () => createAPI('/subjects/simple', 'get')

// 目录简单列表
export const simple = (data) => createAPI('/directorys/simple', 'get', data)

// 全部企业
export const list = (data) => createAPI('/companys', 'get', data)

// 标签简单列表
export const bqsimple = (data) => createAPI('/tags/simple', 'get', data)

// 基础题库添加
export const add = (data) => createAPI('/questions', 'post', data)

// 基础题库详情
export const detail = (data) => createAPI(`/questions/${data.id}`, 'get', data)

// 基础题库修改
export const update = (data) => createAPI(`/questions/${data.id}`, 'put', data)
